import Vue from 'vue'
import App from './App.vue'
import axios from "axios";

Vue.config.productionTip = false
import './assets/iconfont/iconfont.css'


import './assets/scss/style.scss'
import router from './router'

// 全局挂载轮播图
import VueAwesomeSwiper from "vue-awesome-swiper";
import 'swiper/dist/css/swiper.css'
Vue.use(VueAwesomeSwiper)

import Card from "./components/Card";
import ListCard from "./components/ListCard";
Vue.component('m-card', Card)
Vue.component('m-list-card', ListCard)

Vue.prototype.$http = axios.create({
	baseURL: process.env.VUE_APP_API_URL || '/web/api',
	//baseURL: 'http://localhost:3000/web/api'
})

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
